class ZtParkDetailCommentModel {
  String? id;
  String? avatar;
  String? nickName;
  String? content;
  String? parkType;
  bool isLike = false;

  ZtParkDetailCommentModel(
      {this.id,
      this.parkType,
      this.avatar,
      this.nickName,
      this.content,
      this.isLike = false});

  ZtParkDetailCommentModel.fromJson(Map<String, dynamic> json) {
    avatar = json['avatar'];
    nickName = json['nickName'];
    content = json['content'];

    isLike = json['isLike'];
    parkType = json['parkType'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['avatar'] = avatar;
    data['nickName'] = nickName;
    data['content'] = content;

    data['isLike'] = isLike;
    data['id'] = id;
    data['parkType'] = parkType;
    return data;
  }
}
